package com.conncui.subscript.viewpager;




import android.util.SparseArray;
import android.view.View;
import android.view.ViewGroup;

public class ShowFragmentPagerAdapter extends FragmentPagerAdapter {
    SparseArray<Fragment> mViewSparseArray;

    public ShowFragmentPagerAdapter(FragmentManager fm) {
        super(fm);
    }

    public Fragment getItem(int position) {
        return (Fragment) this.mViewSparseArray.get(position);
    }

    public long getItemId(int position) {
        return super.getItemId(position);
    }

    public int getCount() {
        return this.mViewSparseArray == null ? 0 : this.mViewSparseArray.size();
    }

    public int getItemPosition(Object object) {
        return super.getItemPosition(object);
    }

    public boolean isViewFromObject(View view, Object object) {
        return super.isViewFromObject(view, object);
    }

    public CharSequence getPageTitle(int position) {
        return super.getPageTitle(position);
    }

    public Object instantiateItem(ViewGroup container, int position) {
        return super.instantiateItem(container, position);
    }

    public void destroyItem(ViewGroup container, int position, Object object) {
        super.destroyItem(container, position, object);
    }

    public void finishUpdate(ViewGroup container) {
        super.finishUpdate(container);
    }

    public SparseArray<Fragment> getViewSparseArray() {
        return this.mViewSparseArray;
    }

    public void setViewSparseArray(SparseArray<Fragment> viewSparseArray) {
        this.mViewSparseArray = viewSparseArray;
    }
}
